
var model = require("./model").team_message;

var my = (req, res) => {

    model.find({
      id: req.body.id,
      role: req.body.role
    },(err, documents) => {
        if (err){
            res.send("mongodb error!!!");
        }else{
            res.send(documents);
        }
    });
};

module.exports = {
    my :my
};
